import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/userManagement/getList',
    method: 'post',
    data,
  })
}
//添加管理员角色
export function addAdminUserRole(data) {
  return request({
    url: '/menuMange/addAdminUserRole',
    method: 'post',
    data,
  })
}
//获取管理员角色
export function getUserAdminRole(id) {
  return request({
    url: '/menuMange/getUserAdminRole',
    method: 'get',
    params: { userId: id },
  })
}

export function doDelete(data) {
  return request({
    url: '/userManagement/doDelete',
    method: 'post',
    data,
  })
}
export function bindRelation(data) {
  return request({
    url: '/adminBusinessEstateMap/bindRelation',
    method: 'post',
    data,
  })
}
export function deleteRelation(data) {
  return request({
    url: '/adminBusinessEstateMap/deleteRelation',
    method: 'post',
    data,
  })
}
export function getRelation(data) {
  return request({
    url: '/adminBusinessEstateMap/getRelation',
    method: 'post',
    data,
  })
}
